﻿namespace RuTracker.Interface.Login
{
    public interface ILoginProcessor
    {
        /// <summary>
        /// Logins user to system.
        /// throw InvalidUserNameOrPasswordException if user name or password is not valid
        /// </summary>
        LoginResults Login(string userName, string password);

        /// <summary>
        /// Logins to system using captcha identifier
        /// </summary>
        /// <returns></returns>
        LoginResults LoginWithCaptcha(string userName, string password, string captchaCode, string captchaCodeValue,
                                      string captchaSid);
    }

}
